﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="CNTVNow.Web.Helpers.ExtensionMethods" %>
<%@ Import Namespace="CNTVNow.Web.Models" %>
<%@ Import Namespace="CNTVNow.Web.Helpers.Common" %>
<%@ Import Namespace="System.Collections.Generic" %>

<div class="section01_main">
    <ul class="news01">
        <%if (ViewData["NewsUnderBanner"] != null)
          {
              var lstNews = (List<New>)ViewData["NewsUnderBanner"];
              if (lstNews.Count > 0)
              {
                  foreach (var news in lstNews)
                  {
              %>
                        <li>
                            <div class="divblock">
                                <div>
                                    <h2 class="style01"><a href="Detail.cntv?n=<%=news.NewsID%>"><%=news.NewsTitle %></a></h2>
                                    <p><%=news.NewsDescription%><br /><a href="Detail.cntv?n=<%=news.NewsID%>" class="readmore"><%=Resources.Home.ReadMore.ToString()%></a></p>
                                </div>
                                <div style="clear:both"></div>
                                <div>
                                    <p><a href="Detail.cntv?n=<%=news.NewsID%>"><img src="<%=ResolveUrl(news.AvatarImage)%>" alt="" height="106" width="201" class="photo01" /></a></p>
                                </div>
                            </div>
                        </li>
        <%      }
              }
          }
           %>
    </ul>
</div>